const mongoose = require('mongoose')
const Schema = mongoose.Schema
//创建userSchema
const blog = new Schema({
   test:String,
   sort:String,
   page:String,
   writeTime:{type:Date,default:Date.now()},
   page:String,
   agreeNum:{type:Number,default:1},
   readNum:{type:Number,default:1},
   title:String
})

//发布模型
mongoose.model('blogs',blog)